<html>
    <head>
        <title>login window</title>
    </head>
    <body>
        <h1>login</h1>
        <form action="{% url django.contrib.auth.views.login %}" method="post">
        {% csrf_token %}
            <!--<label for="username">User name:</label>
            <input type="text" name="username" value="">
            <label for="password">Password:</label>
            <input type="password" name="password" value="">-->
            <table>
            <tr>
                <td>{{ form.username.label_tag }}</td>
                <td>{{ form.username }}</td>
            </tr>
            <tr>
                <td>{{ form.password.label_tag }}</td>
                <td>{{ form.password }}</td>
            </tr>
            </table>

            <input type="submit" value="login" />
            <input type="hidden" name="next" value="{{ next }}" />
        </form>
        {% if form.errors %}
        <p>username and password didn't match.</p>
        {% endif %}
    </body>
</html>

